const Router=require("koa-router")
const router=new Router()
const {getlist,putlist,delelist,add,carlist}=require("../controller/list")
//const auto=require("../middleware/index")
router.get("/list",getlist)
router.put("/list",putlist)
router.post("/list",add)
router.post("/lists",carlist)
router.delete(`/list/:id`,delelist)
module.exports=router